import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Vida here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Vida extends Actor
{
    /**
     * Act - do whatever the Vida wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.*/
    public void act()
    {
    }
    /**
     * Cambia la imagen si se ha perdido una vida
     */
    public void pierdeVida()
    {
        setImage("corazon2.png");
    }
}
